<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>	
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加展品</title>
<link rel="stylesheet" href="<%=path %>/css/bootstrap.css" />
<link rel="stylesheet" href="<%=path %>/css/css.css" />
<script type="text/javascript" src="<%=path %>/js/jquery1.9.0.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/bootstrap.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/sdmenu.js"></script>
<script type="text/javascript" src="<%=path %>/js/laydate/laydate.js"></script>
<script type="text/javascript" src="<%=path%>/My97DatePicker/WdatePicker.js"></script>	
<script type="text/javascript">
	$(document).ready(function(){
		$("#submit").click(function(){
			var exh_name=$("#exh_name").val();
			var type_id=$("#type_id").val();
			var exh_model=$("#exh_model").val();
			var exh_spe=$("#exh_spe").val();
			var exh_count=$("#exh_count").val();
			var exh_price=$("#exh_price").val();
			var exh_send=$("#exh_send").val();
			var exh_in_time=$("#exh_in_time").val();
			var exh_end_time=$("#exh_end_time").val();
			var exh_remark=$("#exh_remark").val();
			if($.trim(exh_name)==""){
				alert("请输入展品名称");
				return false;
			}
			if($.trim(type_id)==""){
				alert("请输入产品类型");
				return false;
			}
			if($.trim(exh_model)==""){
				alert("请输入型号");
				return false;
			}
			if($.trim(exh_spe)==""){
				alert("请输入规格");
				return false;
			}
			if($.trim(exh_count)==""){
				alert("请输入数量");
				return false;
			}
			if($.trim(exh_price)==""){
				alert("请输入总价值");
				return false;
			}
			if($.trim(exh_send)==""){
				alert("请输入运输要求");
				return false;
			}
			if($.trim(exh_in_time)==""){
				alert("请选择进馆开始时间");
				return false;
			}
			if($.trim(exh_end_time)==""){
				alert("请选择进馆结束时间");
				return false;
			}
			
			alert("添加成功");
			$("#form").submit();
		});
	});
</script>
</head>
<body>
	<div class="right_cont">
		<ul class="breadcrumb">当前位置：我的展会<span class="divider">/</span></span>/被邀请展会</ul>
	</div>
	<div class="title_right"><strong>展品管理</strong></div>
	<form action="<%=path %>/unit/sampleInfoAddOk.do" id="form" method="post">
	<table class="table table-bordered" style="width:400px" align="center">
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">展品名称：</td>
			<td width="50%">
				<input type="text" name="exh_name" maxlength="20" id="exh_name" class="span1-1" />
				<input type="hidden" name="exh_id" maxlength="20" value="${requestScope.exh_id }" id="exh_id" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">展品类别：</td>
			<td width="50%">
				<select class="login_input login_role" name="type_id" id="type_id" style="width:218px;height:26px">
						<option value="">--请选择--</option>
						<c:forEach items="${requestScope.list}" var="type">
						<option value="${type.type_id}">${type.type_name}</option>
						</c:forEach>
				</select>
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">型号：</td>
			<td width="50%">
				<input type="text" name="exh_model" maxlength="20" id="exh_model" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">规格：</td>
			<td width="50%">
				<input type="text" name="exh_spe" maxlength="20" id="exh_spe" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">数量：</td>
			<td width="50%">
				<input type="text" name="exh_count" maxlength="20" id="exh_count" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">总价值：</td>
			<td width="50%">
				<input type="text" name="exh_price" maxlength="20" id="exh_price" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">运输要求：</td>
			<td width="50%">
				<input type="text" name="exh_send" maxlength="20" id="exh_send" class="span1-1" />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">进馆开始时间：</td>
			<td width="50%">
				<input type="text" name="exh_in_time"  class="laydate-icon span1-1" readonly="readonly" onfocus="WdatePicker()" id="exh_in_time"  />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">进馆结束时间：</td>
			<td width="50%">
				<input type="text" name="exh_end_time"  class="laydate-icon span1-1" readonly="readonly" onfocus="WdatePicker()" id="exh_end_time"  />
			</td>
		</tr>
		<tr>
			<td width="50%" align="right" bgcolor="#f1f1f1">备注：</td>
			<td width="50%">
				<input type="text" name="exh_remark" maxlength="20" style="width: 150px" id="exh_remark" class="span1-1" />
			</td>
		</tr>
	</table>
	<table class="margin-bottom-20 table  no-border">
		<tr>
			<td class="text-center">
				<input type="submit" id="submit" value="确定" class="btn btn-info " style="width: 80px;" />
			</td>
		</tr>
	</table>
	</form>
</body>
</html>